﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'proc_cm_DeleteSermon')
BEGIN
    PRINT 'Dropping Procedure proc_cm_DeleteSermon'
    DROP  Procedure  proc_cm_DeleteSermon
END
GO

PRINT 'Creating Procedure proc_cm_DeleteSermon'
GO

CREATE PROCEDURE [dbo].[proc_cm_DeleteSermon]
	@pSermonId uniqueidentifier
AS
BEGIN
	SET NOCOUNT ON

	DELETE FROM [dbo].[tbl_sermon]
	WHERE [sermon_id] = @pSermonId
END
GO

GRANT EXEC ON dbo.proc_cm_DeleteSermon TO PUBLIC
GO
